-- GENERATED SPELL FOR [Surveyor Candress] --


function spell0_16522(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16522', 1500, 1)
end

function Sorts_16522(pUnit, Event)
local choix_sorts_16522 = math.random(0, 0)
if choix_sorts_16522 == 0 then
pUnit:RegisterEvent('spell0_16522', 1, 1)
end
end

function mob16522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16522', math.random(1500, 3000), 1)
end

function mob16522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16522, 1, 'mob16522_Action')
RegisterUnitEvent(16522, 2, 'mob16522_Leave')
RegisterUnitEvent(16522, 3, 'mob16522_Kill')
RegisterUnitEvent(16522, 4, 'mob16522_Die')
